package com.ww.springboot.boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述：
 *
 * @author wanwei
 * @since 2021-08-05 10:39
 */
@RestController
@RequestMapping("/log")
@Slf4j
public class LogController {

    @RequestMapping("/test")
    public String test(String param) {
        System.out.println("--------------");

        switch (param) {
            case "info":
                log.info("xxxxxxx");
                break;
            case "debug":
                log.debug("xxxxxxx");
                break;
            case "error":
                log.error("xxxxxxx");
                break;
            case "warn":
                log.warn("xxxxxxx");
                break;
            default:
        }
        return "200";
    }
}
